-
Notifications
You must be signed in to change notification settings - Fork 122
Project - Abdullah Tadmuri #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
👷 Deploy request for mucss-dataviz pending review.Visit the deploys page to approve it
|
|
Here's my first draft of the pull request! I think I committed four times, and I apologize if that caused any confusion. Please feel free to let me know if there's anything you'd like me to change. Thank you! |
Enchufa2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left several comments.
Please ensure that you follow the project guidelines: https://csslab.uc3m.es/dataviz/tutorials/project/#project-guidelines. And let me know when you have 100% completion by marking the pull request as "ready for review" again.
| --- | ||
| title: "Small Stats Can Be Big Players in Development and Good Governance" | ||
| description: | | ||
| This report reconstructs the “Small States Can Be Big Players in Development and Good Governance” figure using R, combining World Bank, UNDP, and V-Dem data in a fully reproducible workflow.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove second full stop.
| description: | | ||
| This report reconstructs the “Small States Can Be Big Players in Development and Good Governance” figure using R, combining World Bank, UNDP, and V-Dem data in a fully reproducible workflow.. | ||
| author: Abdullah Tadmuri | ||
| date: 2025-11-26 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"`r Sys.Date()`", so that date is updated for every run.
| date: 2025-11-26 | ||
| output: | ||
| distill::distill_article: | ||
| self_contained: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add toc: true.
| title: "Small Stats Can Be Big Players in Development and Good Governance" | ||
| description: | | ||
| This report reconstructs the “Small States Can Be Big Players in Development and Good Governance” figure using R, combining World Bank, UNDP, and V-Dem data in a fully reproducible workflow.. | ||
| author: Abdullah Tadmuri |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add missing categories: "2025"
| self_contained: false | ||
| --- | ||
|
|
||
| # Introduction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Titles should start with level 2.
|
|
||
| The aim here is twofold. First, to recreate the graphic as faithfully as possible using only R and openly available data. Second, to build a fully transparent and reproducible workflow that covers the entire pipeline: data retrieval, cleaning, transformation, visualization, and final layout. The final figure is generated entirely from scratch using tidyverse tools, ggplot2, sf, and related packages. Every element—scatterplot, ridge-density panels, world map, annotation blocks, and the overall layout—is constructed through a structured sequence of steps designed to balance precision, clarity, and readability. | ||
|
|
||
| {width="662" height="452"}\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See guidelines
| # | ||
| ggplot2::ggsave( | ||
| filename = "outputs/figures/democracy_lowcarbon_development.png", | ||
| plot = final_figure, | ||
| width = 49.3, | ||
| height = 27, | ||
| dpi = 96, | ||
| bg = bg_col | ||
| ) | ||
| img <- magick::image_read("outputs/figures/democracy_lowcarbon_development.png") | ||
| img_border <- magick::image_border( | ||
| img, | ||
| color = "white", | ||
| geometry = "20x20" | ||
| ) | ||
| magick::image_write( | ||
| img_border, | ||
| path = "outputs/figures/democracy_lowcarbon_development.png", | ||
| quality = 100 | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to avoid ggsave. Instead, let the chunk output the image with the proper fig.width and fig.height, as discussed in class.
| References:*\ | ||
| \ | ||
| *World Bank. (2024). World Development Indicators; Worldwide Governance Indicators. <https://data.worldbank.org/>* | ||
|
|
||
| *United Nations Development Programme. (2022). Human Development Index: Time series 1990–2021. <https://hdr.undp.org/>* | ||
|
|
||
| *Coppedge, M., Gerring, J., Knutsen, C. H., Lindberg, S. I., Teorell, J., Altman, D., … Ziblatt, D. (2023). Varieties of Democracy (V-Dem) Dataset v12. V-Dem Institute. <https://www.v-dem.net/>* | ||
|
|
||
| *\*Natural Earth. (2023). Admin 0 – Countries. <https://www.naturalearthdata.com/>* | ||
|
|
||
| *Wickham, H., Averick, M., Bryan, J., Chang, W., D’Agostino McGowan, L., François, R., … Yutani, H. (2019). Welcome to the tidyverse. Journal of Open Source Software, 4(43), 1686. <https://doi.org/10.21105/joss.01686>* | ||
|
|
||
| *Wilke, C. O. (2023). ggridges: Ridgeline plots in R [R package]. <https://cran.r-project.org/package=ggridges>* | ||
|
|
||
| *Pedersen, T. L. (2024). ggrepel: Automatically position non-overlapping text labels [R package]. <https://cran.r-project.org/package=ggrepel>* | ||
|
|
||
| *Pebesma, E. (2018). Simple features for R: Standardized support for spatial vector data. R Journal, 10(1), 439–446. <https://journal.r-project.org/articles/RJ-2018-009/>*\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See how to add references in Distill articles here: https://rstudio.github.io/distill/citations.html
| Distill is a publication format for scientific and technical writing, native to the web. | ||
|
|
||
| Learn more about using Distill at <https://rstudio.github.io/distill>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
ATadmuri-hub
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ready for review
Here's my first draft of the pull request! I think I committed four times, and I apologize if that caused any confusion. Please feel free to let me know if there's anything you'd like me to change. Thank you!